package com.victualler.core.config.permission.entity;

import com.victualler.core.base.dao.BaseDao;
import com.victualler.core.common.annotation.InitEditColumn;
import com.victualler.core.common.annotation.ListShowColumn;
import com.victualler.core.common.enums.ColumnFormatEnum;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author: Guoshichang
 * @Date: Create in 12:38 2018-07-01
 * @Discription: 系统登陆用户单元
 */
@Entity
@Table(name="common_user")
public class UserInfoDao extends BaseDao implements Serializable {
    //头像id
    @ListShowColumn(title = "头像",type = ColumnFormatEnum.IMAGE)
    @InitEditColumn(title = "头像",sort = 1,type = ColumnFormatEnum.IMAGE)
    private Long imgId;

    //用户名
    @ListShowColumn(title = "用户名称")
    @InitEditColumn(title = "用户名称",sort = 2)
    private String name;

    //用户登陆名
    @ListShowColumn(title = "账户")
    @InitEditColumn(title = "账户",sort = 3)
    private String userId;

    //密码
    @InitEditColumn(title = "密码",sort = 4)
    private String password;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getImgId() {
        return imgId;
    }

    public void setImgId(Long imgId) {
        this.imgId = imgId;
    }
}
